Delete the standard close button

Hello together,

I want to disable the standard close button but I can´t find the function.

 

 

 


bu12 - Mon Jan 26 03:53:59 EST 2015

Re: Delete the standard close button
Wolfgang Uhr - Mon Jan 26 04:22:19 EST 2015

Hi

 

DB dbDialog = topMost("123");

close(dbDialog , false, CloseDialog_)

 

You have to use the command "close" and to assign a specific callback routine

 

Best regards

Wolfgang

Re: Delete the standard close button
bu12 - Mon Jan 26 04:50:12 EST 2015

Wolfgang Uhr - Mon Jan 26 04:22:19 EST 2015

Hi

 

DB dbDialog = topMost("123");

close(dbDialog , false, CloseDialog_)

 

You have to use the command "close" and to assign a specific callback routine

 

Best regards

Wolfgang

I get a error message

 

DB resultsBox = create "Summary Results Display"
DBE caption
void repaint(DBE canv) {
background(canv, colorLightBlue)
color(canv, colorMaroon)
string cap = get caption
draw(canv, 100, 50, cap)

}DBE canv = canvas(resultsBox, 400, 100, repaint)
caption = field(resultsBox, "Caption:",
"Callbacks will plot data", 20)
beside resultsBox


void closeSchliessen(DB resultsBox){

}


void trendPlot(DBE calledfrom) {
// user code here
repaint canv
} // trendPlot


close(resultsBox, false, closeSchliessen)
DBE trends = button(resultsBox, "Show trends", trendPlot)

show resultsBox

Re: Delete the standard close button
Mike.Scharnow - Mon Jan 26 04:55:02 EST 2015

bu12 - Mon Jan 26 04:50:12 EST 2015

I get a error message

 

DB resultsBox = create "Summary Results Display"
DBE caption
void repaint(DBE canv) {
background(canv, colorLightBlue)
color(canv, colorMaroon)
string cap = get caption
draw(canv, 100, 50, cap)

}DBE canv = canvas(resultsBox, 400, 100, repaint)
caption = field(resultsBox, "Caption:",
"Callbacks will plot data", 20)
beside resultsBox


void closeSchliessen(DB resultsBox){

}


void trendPlot(DBE calledfrom) {
// user code here
repaint canv
} // trendPlot


close(resultsBox, false, closeSchliessen)
DBE trends = button(resultsBox, "Show trends", trendPlot)

show resultsBox

it would really help if you told us, which error message you get :-) :-) :-)

Re: Delete the standard close button
bu12 - Mon Jan 26 05:30:48 EST 2015

Mike.Scharnow - Mon Jan 26 04:55:02 EST 2015

it would really help if you told us, which error message you get :-) :-) :-)

 

Line 21 ->  void closeSchließen(DB resultsBox){  invalid token (EOF) and syntax error

Re: Delete the standard close button
Wolfgang Uhr - Mon Jan 26 06:37:26 EST 2015

bu12 - Mon Jan 26 04:50:12 EST 2015

I get a error message

 

DB resultsBox = create "Summary Results Display"
DBE caption
void repaint(DBE canv) {
background(canv, colorLightBlue)
color(canv, colorMaroon)
string cap = get caption
draw(canv, 100, 50, cap)

}DBE canv = canvas(resultsBox, 400, 100, repaint)
caption = field(resultsBox, "Caption:",
"Callbacks will plot data", 20)
beside resultsBox


void closeSchliessen(DB resultsBox){

}


void trendPlot(DBE calledfrom) {
// user code here
repaint canv
} // trendPlot


close(resultsBox, false, closeSchliessen)
DBE trends = button(resultsBox, "Show trends", trendPlot)

show resultsBox

You should close your repaint routine using } ?

Re: Delete the standard close button
Mike.Scharnow - Mon Jan 26 07:48:39 EST 2015

bu12 - Mon Jan 26 05:30:48 EST 2015

 

Line 21 ->  void closeSchließen(DB resultsBox){  invalid token (EOF) and syntax error

It's most probably the ß.

When you write programs in any programming language you should never use äöüß in variable names or procedure names. (or accents or ç or the like...)

Re: Delete the standard close button
bu12 - Mon Jan 26 08:02:55 EST 2015

Wolfgang Uhr - Mon Jan 26 06:37:26 EST 2015

You should close your repaint routine using } ?

I did it :)